package com.shanyin.framework.common.base;

import com.shanyin.framework.common.enums.ICommonEnum;

/***
 ** @category 请用一句话来描述其用途...
 ** @author qing.yunhui
 ** @email: 280672161@qq.com
 ** @createTime: 2016年11月17日下午10:40:38
 **/
public enum ResponseStatus implements ICommonEnum{

	SUCCESS(200, "成功"),
	FAILED(300, "失败"), 
	EXCEPTION(400,"异常");

	private final int key;
	private final String value;

	private ResponseStatus(int key, String value) {
		this.key = key;
		this.value = value;
	}

	@Override
	public String getCode() {
		return String.valueOf(key);
	}

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public Integer getKey() {
		return key;
	}

	
}
